package com.motong.gongdan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.motong.gongdan.entity.DeviceInfo;
import com.motong.gongdan.vo.H5Vo.lamp.query.LampDashboardQuery;
import com.motong.gongdan.vo.H5Vo.lamp.vo.LampDashboardVo;
import com.motong.gongdan.vo.system.device.query.DeviceListQuery;
import com.motong.gongdan.vo.system.device.vo.DeviceListVo;
import org.apache.ibatis.annotations.Param;

public interface DeviceInfoMapper extends BaseMapper<DeviceInfo> {

    /**
     * @param page  分页信息
     * @param query 参数信息
     */
    Page<DeviceListVo> getList(Page<DeviceInfo> page, @Param("query") DeviceListQuery query);

    /**
     * @param page  分页信息
     * @param query 参数信息
     */
    Page<LampDashboardVo> getLampDashboardList(Page<LampDashboardVo> page, @Param("query") LampDashboardQuery query);
}